PEGetNSections

Use PEGetNSections to retrieve the number of sections in the specified report. By default, each report has five areas, each containing one section (Report Header, Page Header, Details, Report Footer, and Page Footer). Thus, if this function were applied to a default report, five (5) would be returned. As you add groups to your report or you add sections to one or more areas, the number of sections in the report increases.

C Syntax
short CRPE_API PEGetNSections (
        short printJob );
Parameter

printJob

Specifies the print job from which you want to get a section count.

Returns
VB Syntax

VB Sample Code for modifying sections and lines

Declare Function PEGetNSections Lib "crpe32.dll" (
    ByVal printJob As Integer ) As Integer
Delphi Syntax

Delphi code for getting/setting section format

function PEGetNSections (
    printJob: Word
    ): Smallint stdcall;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com